#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@File ：RolePermissionModel.py
@Author ：zqy
@Email : zqingy@work@163.com
@note:
"""

from sqlalchemy import Integer, Column

from application.util.MysqlUtil import mysql_db


class RolePermissionModel(mysql_db.Model):
    """
    角色-权限关联表
    """
    __tablename__: str = "role_permission"
    # 主键
    id = Column(Integer, primary_key=True, unique=True, autoincrement=True, comment="主键，自增")
    # 角色ID
    role_id = Column(Integer, nullable=True, comment="角色ID")
    # 权限ID
    permission_id = Column(Integer, nullable=True, comment="权限ID")
